package com.social.config;

import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: social
 * @BelongsPackage: com.social.config
 * @Author: zhm
 * @CreateTime: 2022-11-08  20:59
 * @Description: TODO
 * @Version: 1.0
 */
@Component
public class BCryptConfig {
    @Bean
    public BCryptPasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }
}
